import { createRouter, createWebHashHistory, RouteComponent, RouterOptions } from 'vue-router'

const routes: Array<RouteComponent> = [
    {
        path: '/',
        name: 'Home',
        component: () => import('../views/Home.vue')
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('../views/About.vue')
    }
];

const router = createRouter(<RouterOptions>{
    history: createWebHashHistory(),
    routes
});

export default router;